package ca.seia.comp6521.a2.itemsetstorage;

public class CharTriplet {

	private char valueOne;
	private char valueTwo;
	private char valueThree;
	
	public CharTriplet(char valueOne, char valueTwo, char valueThree) {
		this.valueOne = valueOne;
		this.valueTwo = valueTwo;
		this.valueThree = valueThree;
	}
	
	public CharTriplet(int valueOne, int valueTwo, int valueThree) {
		this.valueOne = (char) valueOne;
		this.valueTwo = (char) valueTwo;
		this.valueThree = (char) valueThree;
	}

	public char getValueOne() {
		return valueOne;
	}

	public void setValueOne(char valueOne) {
		this.valueOne = valueOne;
	}

	public char getValueTwo() {
		return valueTwo;
	}

	public void setValueTwo(char valueTwo) {
		this.valueTwo = valueTwo;
	}

	public char getValueThree() {
		return valueThree;
	}

	public void setValueThree(char valueThree) {
		this.valueThree = valueThree;
	}

	@Override
	public String toString() {
		return "CharTriplet [valueOne=" + valueOne + ", valueTwo=" + valueTwo + ", valueThree=" + valueThree + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + valueOne;
		result = prime * result + valueThree;
		result = prime * result + valueTwo;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CharTriplet other = (CharTriplet) obj;
		if (valueOne != other.valueOne)
			return false;
		if (valueThree != other.valueThree)
			return false;
		if (valueTwo != other.valueTwo)
			return false;
		return true;
	}
	
}
